package sctu.edu.java.year2016.team01.xuhanmei.day20160522.practice2;

/**
 * Created by Administrator on 2016/5/24.
 */
public class YnagHui {
    public static void main(String[] args) {
        int sanjiao[][]=new int[8][];
        for(int i=0;i<sanjiao.length;i++){
            sanjiao[i]=new int[i+1];
            for(int j=0;j<=sanjiao[i].length-1;j++){
                if(i==0||j==0||j==sanjiao[i].length-1){
                    sanjiao[i][j]=1;
                }
                else{
                    sanjiao[i][j]=sanjiao[i-1][j]+sanjiao[i-1][j-1];
                }
                System.out.print(sanjiao[i][j] + "\t");
            }
            System.out.println();
        }
    }
}
